inherit "/objs/sys/daemon";

map commands = ([ ]);

void create()
{
	daemon::create();

	commands = ([ ]);
	loadCommands();
}

void loadCommands()
{
	foreach(string file in get_files("objs/cmds"))
	{
		commands[file[0..<3]] = "objs/cmds/" + file[0..<3];
	}
}

string get_command(string cmd)
{
	return commands[cmd];
}
